// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * AdjustmentOrderProduct
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "adjustment_order_product", autoResultMap = true)
@Schema(title = "调整单子表")
public class AdjustmentOrderProduct implements Serializable {

  /**
   * 所属调整单
   */
  @TableField(value = "`parent_adjustment_order`")
  @JoinField(AdjustmentOrder.class)
  @Schema(title = "所属调整单")
  private Long parentAdjustmentOrder;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 图片
   */
  @TableField(value = "`pic_url`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> picUrl;

  /**
   * 产品
   */
  @TableField(value = "`product`")
  @Schema(title = "产品")
  private String product;

  /**
   * 品名
   */
  @TableField(value = "`prd_name`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long prdName;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 产品标签
   */
  @TableField(value = "`prd_label`")
  @Schema(title = "产品标签")
  private String prdLabel;

  /**
   * 店铺
   */
  @TableField(value = "`shop`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shop;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @JoinField(ListingFather.class)
  @Schema(title = "FNSKU")
  private Long fnsku;

  /**
   * FNSKU的关联标题
   */
  @Schema(title = "FNSKU的关联标题")
  private String fnskuFnsku;

  /**
   * 新品名
   */
  @TableField(value = "`new_prd_name`")
  @JoinField(Product.class)
  @Schema(title = "新品名")
  private Long newPrdName;

  /**
   * 新SKU
   */
  @TableField(value = "`new_sku`")
  @Schema(title = "新SKU")
  private String newSku;

  /**
   * 新店铺
   */
  @TableField(value = "`new_shop`")
  @JoinField(ShopInfo.class)
  @Schema(title = "新店铺")
  private Long newShop;

  /**
   * 新FNSKU
   */
  @TableField(value = "`new_fnsku`")
  @JoinField(ListingFather.class)
  @Schema(title = "新FNSKU")
  private Long newFnsku;

  /**
   * 可用量
   */
  @TableField(value = "`availble_num`")
  @Schema(title = "可用量")
  private Long availbleNum;

  /**
   * 新可用量
   */
  @TableField(value = "`new_availble_num`")
  @Schema(title = "新可用量")
  private Long newAvailbleNum;

  /**
   * 可用调整量
   */
  @TableField(value = "`good_adjust_num`")
  @Schema(title = "可用调整量")
  private Long goodAdjustNum;

  /**
   * 次品量
   */
  @TableField(value = "`defective_quantity`")
  @Schema(title = "次品量")
  private Long defectiveQuantity;

  /**
   * 次品调整量
   */
  @TableField(value = "`bad_adjust_num`")
  @Schema(title = "次品调整量")
  private Long badAdjustNum;

  /**
   * 调整量
   */
  @TableField(value = "`adjustment_amount`")
  @Schema(title = "调整量")
  private Long adjustmentAmount;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 出库仓位
   */
  @TableField(value = "`good_warehouse_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "出库仓位")
  private Long goodWarehouseBin;

  /**
   * 次品仓位
   */
  @TableField(value = "`bad_warehouse_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "次品仓位")
  private Long badWarehouseBin;

  /**
   * 入库仓位
   */
  @TableField(value = "`new_good_whb`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "入库仓位")
  private Long newGoodWhb;

  /**
   * 新次品仓位
   */
  @TableField(value = "`new_bad_whb`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "新次品仓位")
  private Long newBadWhb;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 库存
   */
  @TableField(value = "`inventory_id`")
  @JoinField(InventoryPlacementR.class)
  @Schema(title = "库存")
  private Long inventoryId;

  /**
   * fnsku名称
   */
  @TableField(value = "`fnsku_name`")
  @Schema(title = "fnsku名称")
  private String fnskuName;

  /**
   * 新Fnsku名称
   */
  @TableField(value = "`new_fnsku_name`")
  @Schema(title = "新Fnsku名称")
  private String newFnskuName;
}
